package interview.huawei.tjt.od;

/**
 * @Author CandyWall
 * @Date 2022/2/22--15:42
 * @Description
 */
public class P2 {
    public boolean canConstruct(String ransom, String magazine) {
        return magazine.indexOf(ransom) >= 0;
    }

    public static void main(String[] args) {
        P2 p2 = new P2();
        System.out.println(p2.canConstruct("a", "b"));
        System.out.println(p2.canConstruct("aa", "ab"));
        System.out.println(p2.canConstruct("aa", "aab"));
    }
}